//
//  AddPlanViewController.m
//  你的温实初
//
//  Created by lanou on 16/7/18.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "AddPlanViewController.h"

@interface AddPlanViewController ()

@property (nonatomic, strong) UILabel *timeLabel;

@property (nonatomic, strong) UILabel *contentLabel;

@property (nonatomic, strong) UITextField *timeField;

@property (nonatomic, strong) UITextField *contentField;

@end

@implementation AddPlanViewController

- (UILabel *)timeLabel {
    if (!_timeLabel) {
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(kwidth/414*50, kheight/736*100, kwidth/414*100, kheight/736*40)];
        _timeLabel.text = @"时间";
    }
    return _timeLabel;
}

//- (UITextField *)timeField {
//    if (!_timeField) {
//        _timeField = [[UITextField alloc] initWithFrame:CGRectMake(kwidth/414*150, kheight/736*100, kwidth/414*200, kheight/736*40)];
//        _timeField.placeholder = @"xx:xx 例如19:30";
//        _timeField
//    }
//    return _timeField;
//}

- (UILabel *)contentLabel {
    if (!_contentLabel) {
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(kwidth/414*100, kheight/736*210, kwidth/414*60, kheight/736*40)];
        _contentLabel.text = @"提示内容:";
    }
    return _contentLabel;
}

- (UITextField *)contentField {
    if (!_contentField) {
        _contentField = [[UITextField alloc] initWithFrame:CGRectMake(kwidth/414*100, kheight/736*270, kwidth/414*120, kheight/736*40)];
        _contentField.placeholder = @"例如:小主该服药了!";
    }
    return _contentField;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(rightItemAction:)];
    
    [self.view addSubview:self.timeLabel];
    [self.view addSubview:self.timeField];
    [self.view addSubview:self.contentLabel];
    [self.view addSubview:self.contentField];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)rightItemAction:(UIBarButtonItem *)sender {
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
